
<!-- $Id: navigate_table.php 3 2010-05-27 16:25:49Z alistair.mills@btinternet.com $ -->

<?php

        $thisscript   = $_SERVER["PHP_SELF"]; // link to this php file
        $path_parts   = pathinfo($thisscript);
        $root_dir     = $path_parts["dirname"];
        $basename     = $path_parts["basename"];
        $pres         = "";
        $presentation = ($pres == "") ? $basename : $pres;

        $title        = ($title      == "") ? '&nbsp;' : $title;
        $year         = ($year       == "") ? '&nbsp;' : $year;
        $mois         = ($mois       == "") ? '&nbsp;' : $mois;
        $category     = ($category   == "") ? '&nbsp;' : $category;
        $translator   = ($translator == "") ? '&nbsp;' : $translator;
        $date         = ($date       == "") ? '&nbsp;' : $date;

?>

<table border="1">
    <tr><td>
        <table border="0">
            <tr><td><a title="chercher"           href="_zoom/search.php">Chercher les traductions</a></td></tr>
            <tr><td><a title="Articles de La Guinguette &agrave; traduire" href="traductions.html">Articles de La Guinguette - Articles &agrave; traduire </a></td></tr>
            <tr><td><a title="index (php)"        href="index.php"> Index (php)</a></td></tr>
            <tr><td><a title="index (htm)"        href="index.html">Index (htm)</a></td></tr>
            <tr><td><a title="statistiques (php)" href="stats.php"> Statistiques (php)</a></td></tr>
            <tr><td><a title="statistiques (htm)" href="stats.html">Statistiques (htm)</a></td></tr>
        </table>
        </td>
        <td>

        <form method="get" action=<?php echo "$presentation"; ?>>
            <table>

            <tr><td>Ann&eacute;e</td><td align="right"><select name="year" size="3" >
                                        <option <?php $p = ($year == 2001) ? 'selected="selected"' : ''; echo "$p"; ?>value="2001">2001</option>
                                        <option <?php $p = ($year == 2002) ? 'selected="selected"' : ''; echo "$p"; ?>value="2002">2002</option>
                                        <option <?php $p = ($year == 2003) ? 'selected="selected"' : ''; echo "$p"; ?>value="2003">2003</option>
                                        <option <?php $p = ($year == 2004) ? 'selected="selected"' : ''; echo "$p"; ?>value="2004">2004</option>
                                        <option <?php $p = ($year == 2005) ? 'selected="selected"' : ''; echo "$p"; ?>value="2005">2005</option>
                                        <option <?php $p = ($year == 2006) ? 'selected="selected"' : ''; echo "$p"; ?>value="2006">2006</option>
                                        <option <?php $p = ($year == 2007) ? 'selected="selected"' : ''; echo "$p"; ?>value="2007">2007</option>
                                        <option <?php $p = ($year == 2008) ? 'selected="selected"' : ''; echo "$p"; ?>value="2008">2008</option>
                                        <option <?php $p = ($year == 2009) ? 'selected="selected"' : ''; echo "$p"; ?>value="2009">2009</option>
                                        </select>
                                     </td></tr>

            <tr><td>Cat&eacute;gorie</td><td align="right">
                                        <input type="radio" name="cat" value="act" <?php $p = ($cat == "act") ? 'checked' : ''; echo "$p"; ?>>actualit&eacute;
                                        <input type="radio" name="cat" value="cul" <?php $p = ($cat == "cul") ? 'checked' : ''; echo "$p"; ?>>culture
                                        <input type="radio" name="cat" value="soc" <?php $p = ($cat == "soc") ? 'checked' : ''; echo "$p"; ?>>soci&eacute;t&eacute;
                                    </td></tr>

            <tr><td>Mois</td>       <td align="right"><select name="month" size="3" >
                                        <option <?php $p = ($month ==  1) ? 'selected="selected"' : ''; echo "$p"; ?>value="01">janvier</option>
                                        <option <?php $p = ($month ==  2) ? 'selected="selected"' : ''; echo "$p"; ?>value="02">f&eacute;vrier</option>
                                        <option <?php $p = ($month ==  3) ? 'selected="selected"' : ''; echo "$p"; ?>value="03">mars</option>
                                        <option <?php $p = ($month ==  4) ? 'selected="selected"' : ''; echo "$p"; ?>value="04">avril</option>
                                        <option <?php $p = ($month ==  5) ? 'selected="selected"' : ''; echo "$p"; ?>value="05">mai</option>
                                        <option <?php $p = ($month ==  6) ? 'selected="selected"' : ''; echo "$p"; ?>value="06">juin</option>
                                        <option <?php $p = ($month ==  7) ? 'selected="selected"' : ''; echo "$p"; ?>value="07">juillet</option>
                                        <option <?php $p = ($month ==  8) ? 'selected="selected"' : ''; echo "$p"; ?>value="08">ao&ucirc;t</option>
                                        <option <?php $p = ($month ==  9) ? 'selected="selected"' : ''; echo "$p"; ?>value="09">septembre</option>
                                        <option <?php $p = ($month == 10) ? 'selected="selected"' : ''; echo "$p"; ?>value="10">octobre</option>
                                        <option <?php $p = ($month == 11) ? 'selected="selected"' : ''; echo "$p"; ?>value="11">novembre</option>
                                        <option <?php $p = ($month == 12) ? 'selected="selected"' : ''; echo "$p"; ?>value="12">d&eacute;cembre</option>
                                        </select>
                                    </td></tr>

            <tr><td>Pr&eacute;sentation</td><td align="right">
                                        <input type="radio" name="pres" value="article.php" <?php $p = ($presentation == "article.php") ? 'checked' : ''; echo "$p"; ?>>seul
                                        <input type="radio" name="pres" value="both.php"    <?php $p = ($presentation == "both.php")    ? 'checked' : ''; echo "$p"; ?>>c&ocirc;te &agrave; c&ocirc;te
                                    </td></tr>

            <tr><td colspan="2" align="right"><input type="submit" value="Envoyer"></td></tr>

            </table>
        </form>


        </td>
     </tr>
